/**
 *   yatce
 *   Copyright (C) 2009   UENISHI Kota <kuenishi+yatce@gmail.com>
 *
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Lesser General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Lesser General Public License for more details.
 *
 *     You should have received a copy of the GNU Lesser General Public License
 *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 **/

#ifndef EASY_TEST_H
#define EASY_TEST_H

#include <stdbool.h>

extern unsigned int total_test;
extern unsigned int passed_test;
extern unsigned int failed_test;

extern struct test_entry * test_stack;

void prepare(void);

void test( const char * name, bool test_result );

bool print_result(const char * name);

struct test_entry{
  const char * name;
  struct test_entry * prev;
  bool result;
};


#endif

